<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:o="http://omnifaces.org/ui">
    <h:head>
        <title>Test</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel value="Name: " for="named"/>
                <h:inputText id="named" value="#{test.name}">
                    <o:validator validatorId="testValidator"/>
                    <o:converter converterId="stringConverter"/>
                </h:inputText>
                <h:message for="named"/>

                <h:outputLabel value="Name: " for="typed"/>
                <h:inputText id="typed" value="#{test.name}">
                    <o:validator validatorId="testValidator"/>
                    <o:converter converterId="java.lang.String"/>
                </h:inputText>
                <h:message for="typed"/>
            </h:panelGrid>
            <h:commandButton value="Test" actionListener="#{test.test}"/>
        </h:form>
    </h:body>
</html>

